#ifndef	__TOPO_H_
#define	__TOPO_H_

#include "config.h"

#include "api_jl.h"
#include "dlt698_45_type.h"



/*******************************************************************************
		
*******************************************************************************/

#pragma   pack(1)


typedef struct{
	DATE_TIME_S    Start;       
	uint8   Phase;
	IB32_B08 S1;
	IB32_B08 S2;
	IB32_B08 Sn;
	uint8   CharLen;
	uint8   CharCode[16];
	uint8   ExtMsgl;
	uint8   ExtMsg[32];
}TOPO_RESULT_S;


typedef struct
{
	B32_B08  Start;  
//	B32_B08  End;
}TOPO_RECORD_ADDR;
#pragma pack()


extern PARA_TOPO_CURRENT_INFO  TopoCurrentInfo;


extern TOPO_RESULT_S  TopoResult;

extern TOPO_RECORD_ADDR  TopoRecordaddr;


void TopoCurrentParaInit(void);

void ClearTopoRecordAddr(void);

uint16 AccountBitStringBytes(uint16 bitLen);
uint16 GroupATopResult(uint8 *buf, uint8 *result,uint8 type);






#endif
